var log4js = require('log4js')

log4js.configure({
    appenders:{
        console:{type: 'console'},
        logfile:{type: 'file', filename:'./logs/run.log', pattern:'..yyyy-MM-dd'}
    },

    categories:{
        default: { appenders: ['console', 'logfile'], level:'debug'}
    }

})

function getLogger(){
    return log4js.getLogger()
}

const Log = log4js.getLogger()

module.exports = {
    getLogger,
    Log
}

